package demo6;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

//在类上使用@Scope注解，
@Component
//@Scope("singleton")
@Scope("prototype")//标注该类时多实例的
public class Person {

}
